package pm.workgroup.factory;

import pm.user.factory.UserFactory;
import pm.user.service.UserService;
import pm.workgroup.service.WorkgroupService;

public class WorkgroupFactory {
	private static WorkgroupFactory instance;
	private WorkgroupService workgroup;

	private WorkgroupFactory() {
		workgroup = new WorkgroupService();
	}

	public static synchronized WorkgroupFactory getInstance() {
		if (instance == null) {
			instance = new WorkgroupFactory();
		}
		return instance;
	}

	public WorkgroupService createWorkgroupService() {
		return workgroup;
	}
}
